#ifndef COMMANDCREATOR_H
#define COMMANDCREATOR_H

#include <QHash>
#include <boost/function.hpp>

class CommandMapper
{
public:
	static CommandMapper* instance();
	bool handleCommand(unsigned long commandCode,int socket, int commandLength);
private:
	CommandMapper();
	QHash<unsigned long, boost::function<bool (int, int)> > m_CodeToFunc;
};

#endif // COMMANDCREATOR_H
